package com.example.vehicle.dao;

import com.example.entity.Household;
import com.example.entity.Village;
import com.example.vehicle.vo.VehicleVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VehicleMapper {
    /**
     * 停车场管理-车辆全查
     * @param vehicleCode
     * @return
     */
    List<Village> getVehicle(String vehicleCode);

    /**
     * 停车场管理-车辆删除
     * @param id
     * @return
     */
    int delVehicle(Integer id);

    /**
     * 停车场管理-车辆添加
     * @param vehicle
     * @return
     */
    int addVehicle(VehicleVO vehicle);

    /**
     * 停车场管理-车辆修改
     * @param vehicle
     * @return
     */
    int updateVehicle(VehicleVO vehicle);

    /**
     * 停车场管理-住户管理
     * @param householdType
     * @return
     */
    List<Household> getHouseAll(String householdType);
}
